Build a URI & Request
the old way:
val uri = Uri.parse("https://www.googleapis.com/books/v1/volumes")
.buildUpon()
.appendQueryParameter("q", "pride+prejudice")
.appendQueryParameter("maxResults", "10")
.appendQueryParameter("printType", "books")
.build()
val queue = Volley.newRequestQueue(context)
val stringRequest = StringRequest(Request.Method.GET, uri.toString(),
Response.Listener<String> { response -> ... },
Response.ErrorListener { ... })
queue.add(stringRequest)
Parsing example: with GSON